//
//  ZLPDataBaseHandle.h
//  TangYi
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 赵连鹏. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZLPTableViewModel.h"
#import "ZLPIsLoginHandle.h"

typedef NS_ENUM(NSUInteger, SelectTopic) {
    InTable,
    NotInTable,
    SelectError,
};

@interface ZLPDataBaseHandle : NSObject

+ (instancetype)shareDataBaseHandle;

- (void)openDB;

- (void)createTable;

- (SelectTopic)isHaveInTable:(ZLPTableViewModel *)topic;

- (void)saveTopicInDB:(ZLPTableViewModel *)topic;

- (void)deleteTopicInDB:(ZLPTableViewModel *)topic;

- (NSMutableArray *)selectAllTopic;

@end
